home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / plotting / gnuplot3.lzh / gnuplot / docs / Makefile.ami < prev    next >
Makefile  |  1991-09-04  |  3KB  |  106 lines

  1. #
  2. # Makefile for GNUPLOT documentation (Aztec C v5.xx Version)
  3. #
  4. # Note that the top-level file for documentation is gnuplot.doc.
  5. # See README.
  6. #
  7. # To print manual:
  8. #    make gnuplot.dvi             (for latex)
  9. #    (print or view gnuplot.dvi)
  10. # OR
  11. #    make gnuplot.nroff           (for nroff)
  12. #    (print or view gnuplot.nroff)
  13. #   or
  14. #    make "TROFF=itroff" troff    (for troff; use your troff for itroff here)
  15. #
  16. # $Id: Makefile,v 1.1 90/01/11 15:43:03 dfk Exp Locker: dfk $
  17.  
  18. # usually overridden by ../Makefile
  19. HELPDEST = /usr/local/lib/
  20.  
  21. # substitute your troff command (and any flags) for this one
  22. TROFF=itroff
  23.   
  24. # substitute cp if you do not have the install program
  25. INSTALL=install
  26.  
  27. # Compiler flags
  28. # -DSYSV if att sys V
  29. # -DMSDOS if MSDOS PS
  30. # -traditional -g -O if gcc (set 'CC = gcc')
  31. # no extra flags for BSD
  32. CFLAGS = 
  33. CC = cc
  34. LN =ln
  35. LFLAGS = -lm -lc
  36.  
  37. # default is what is needed for interactive gnuplot
  38. default: gnuplot.hlp gnuplot.gih
  39.  
  40. ### [tn]roff documentation
  41. troff: gnuplot.ms titlepage.ms
  42.     tbl gnuplot.ms | eqn | $(TROFF) -ms
  43.  
  44. # for screen viewing, or printers with backspace/overstrike, remove the -Tlpr
  45. nroff gnuplot.nroff: gnuplot.ms titlepage.ms
  46.     tbl gnuplot.ms | neqn | nroff -ms -Tlpr > gnuplot.nroff
  47.  
  48. ms gnuplot.ms: doc2ms gnuplot.doc
  49.     doc2ms < gnuplot.doc > gnuplot.ms
  50.  
  51. doc2ms: doc2ms.c
  52.     $(CC) $(CFLAGS) -o doc2ms.o doc2ms.c
  53.     $(LN) -o doc2ms doc2ms.o $(LFLAGS)
  54.  
  55. ### LaTeX documentation
  56. tex gnuplot.tex: doc2tex gnuplot.doc
  57.     doc2tex < gnuplot.doc > gnuplot.tex
  58.  
  59. dvi gnuplot.dvi: gnuplot.tex titlepage.tex
  60.     latex gnuplot.tex
  61.     latex gnuplot.tex
  62.  
  63. doc2tex: doc2tex.c
  64.     $(CC) $(CFLAGS) -o doc2tex.o doc2tex.c
  65.     $(LN) -o doc2tex doc2tex.o $(LFLAGS)
  66.  
  67. # this is how to make gnuplot.hlp
  68. hlp gnuplot.hlp: doc2hlp gnuplot.doc
  69.     doc2hlp < gnuplot.doc > gnuplot.hlp
  70.  
  71. doc2hlp: doc2hlp.c
  72.     $(CC) $(CFLAGS) -o doc2hlp.o doc2hlp.c
  73.     $(LN) -o doc2hlp doc2hlp.o $(LFLAGS)
  74.  
  75. # this is how to make gnuplot.gih
  76. gih gnuplot.gih: doc2gih gnuplot.doc
  77.     doc2gih < gnuplot.doc > gnuplot.gih
  78.  
  79. doc2gih: doc2gih.c
  80.     $(CC) $(CFLAGS) -o doc2gih.o doc2gih.c
  81.     $(LN) -o doc2gih doc2gih.o $(LFLAGS)
  82.  
  83. # this is how to check the gnuplot.doc file
  84. check: checkdoc gnuplot.doc
  85.     checkdoc < gnuplot.doc
  86.  
  87. checkdoc: checkdoc.c
  88.     $(CC) $(CFLAGS) -o checkdoc.o checkdoc.c
  89.     $(LN) -o checkdoc checkdoc.o $(LFLAGS)
  90.  
  91. # For Unix and MSDOS only
  92. install-unix: gnuplot.gih
  93.     $(INSTALL) gnuplot.gih $(HELPDEST)
  94.  
  95. # for VMS only
  96. install-vms: gnuplot.hlp
  97.     $(INSTALL) gnuplot.hlp $(HELPDEST)
  98.  
  99. # remove all derived files
  100. clean:
  101.     rm -f doc2ms gnuplot.nroff gnuplot.ms
  102.     rm -f doc2tex gnuplot.tex gnuplot.dvi gnuplot.aux gnuplot.log gnuplot.toc
  103.     rm -f doc2hlp gnuplot.hlp
  104.     rm -f doc2gih gnuplot.gih
  105.     rm -f checkdoc *~ *.o core a.out
  106.